{{%CONTENT_TYPE:TEXT}}
// swift-tools-version:5.2
//===----------------------------------------------------------------------===//
//
// This source file is part of the Soto for AWS open source project
//
// Copyright (c) 2017-2020 the Soto project authors
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
// See CONTRIBUTORS.txt for the list of Soto project authors
//
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//

import PackageDescription

let package = Package(
    name: "soto",
    platforms: [.iOS(.v12), .tvOS(.v12), .watchOS(.v5)],
    products: [
{{#targets}}
        .library(name: "Soto{{name}}", targets: ["Soto{{name}}"]){{^last()}},{{/last()}}
{{/targets}}
    ],
    dependencies: [
        .package(url: "https://github.com/soto-project/soto-core.git", .branch("main"))
    ],
    targets: [
{{#targets}}
{{#hasExtension}}
        .target(name: "Soto{{name}}", dependencies: [{{#dependencies}}{{.}}{{^last()}}, {{/last()}}{{/dependencies}}], path: "./Sources/Soto/", sources: ["Services/{{name}}", "Extensions/{{name}}"]){{^last()}},{{/last()}}
{{/hasExtension}}
{{^hasExtension}}
        .target(name: "Soto{{name}}", dependencies: [{{#dependencies}}{{.}}{{^last()}}, {{/last()}}{{/dependencies}}], path: "./Sources/Soto/Services/{{name}}"),
{{/hasExtension}}
{{/targets}}

        .testTarget(
            name: "SotoTests",
            dependencies: [
{{#testTargets}}
                "Soto{{.}}"{{^last()}},{{/last()}}
{{/testTargets}}
            ]
        )
    ]
)
